﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Model.MetadataTypes;
namespace Model.Entities
{
    /// <summary>
    /// 实体类 软件操作记录, 此类请勿动，以方便表字段更改时重新生成覆盖
    /// </summary>
    [Serializable]
    [MetadataType(typeof(HRDS_SOFTWAREACTION_Metadata))]
    public partial class HRDS_SOFTWAREACTION
    {
        /// <summary>
        /// 创建<see cref="HRDS_SOFTWAREACTION"/>的实例
        /// </summary>
        public HRDS_SOFTWAREACTION()
        {
        }
        /// <summary>
        /// SAGUID
        /// </summary>
        public virtual string SAGUID { get; set; }

        		
        /// <summary>
        /// 软件进程名称
        /// </summary>
        public virtual string SOFTWARENAME { get; set; }

    		
        /// <summary>
        /// 软件描述名称
        /// </summary>
        public virtual string DISCRIPTIVENAME { get; set; }

    		
        /// <summary>
        /// 软件类型
        /// </summary>
        public virtual decimal SOFTWARETYPE { get; set; }

    		
        /// <summary>
        /// IP
        /// </summary>
        public virtual string SOFTWAREIP { get; set; }

    		
        /// <summary>
        /// IP映射ID
        /// </summary>
        public virtual string IPMAPPINGID { get; set; }

    		
        /// <summary>
        /// IP映射名
        /// </summary>
        public virtual string IPMAPPINGNAME { get; set; }

    		
        /// <summary>
        /// 操作类型
        /// </summary>
        public virtual decimal ACTIONTYPE { get; set; }

    		
        /// <summary>
        /// 操作日期
        /// </summary>
        public virtual DateTime ACTIONDATE { get; set; }

    		
        /// <summary>
        /// 备注
        /// </summary>
        public virtual string REMARKS { get; set; }

    		
        public override bool Equals(object obj)
        {
            HRDS_SOFTWAREACTION model = obj as HRDS_SOFTWAREACTION;
            return model != null && (ReferenceEquals(SAGUID,null) ? ReferenceEquals(model.SAGUID, null) : SAGUID.Equals(model.SAGUID));
        }
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();
            hash = (hash * 397) ^ (ReferenceEquals(SAGUID, null) ? 0 : SAGUID.GetHashCode());
            return hash;
        }
    }
}
